<?php
$xdata=$_GET["xdata"];
switch ($xdata){
	case "MapPokemons":
		$file = "MapPokemons.xml";
		break;
	case "Pokemons":
		$file = "Pokemons.xml";
		break;
	case "Moves":
		$file = "Moves.xml";
		break;		
}		
$fp = fopen($file, 'r+');
$content = fread($fp, filesize($file));
echo $content;
?>